package com.crm.mapper;

import com.crm.pojo.Contact;
import com.crm.pojo.client;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface contactMapper {

    List<Contact> selectAll(int uid);

    boolean save(Contact contact);

    boolean updateById(Contact contact);

    boolean deleteById(int id);

    client selectByCid(int cid);

    //关键字查询
    List<Contact> selectByKey(@Param("uid") int uid, @Param("key") String key);
}
